import { createApp } from 'vue'
import Vconsole from 'vconsole'
import AppComponent from './App.vue'
import router from './router'
import store from './store'
import globalComponents from '@/globalComponents/index'
import testComponents from '@/testComponents/index'
import 'lib-flexible/flexible.js'
import '@/assets/scss/normalize.scss'
import 'animate.css'
new Vconsole

const app = createApp(AppComponent)

declare module '@vue/runtime-core' {
  interface ComponentCustomProperties {
    $http: any;
  }
}

app.config.globalProperties.$http = () => {
  console.log('$http')
}
app.use(store)
  .use(router)
  .use(testComponents)
  .use(globalComponents)
  .mount('#app')